Javascript Fundamentals: Reducing An Array To A Single Value